add_subdirectory(ftpserver)

set(MOBILE_FILETRANSFER_SOURCES
        ftpclient/ftpmanager.h
        ftpclient/ftpmanager.cpp
        ftpclient/qftp.h
        ftpclient/qftp.cpp
        ftpclient/qurlinfo.h
        ftpclient/qurlinfo.cpp
        )

add_library(filetransfer ${MOBILE_FILETRANSFER_SOURCES})

target_include_directories(filetransfer PUBLIC
        ${CMAKE_CURRENT_SOURCE_DIR}/ftpclient
        ${CMAKE_CURRENT_SOURCE_DIR}/ftpserver/fineftp-server/include/
        )

target_link_libraries(filetransfer PRIVATE
        Qt${QT_VERSION_MAJOR}::Widgets
        Qt${QT_VERSION_MAJOR}::Network
        mobile_common
        fineftp::server
        )